package com.cet.designpattern.service.responsibilitychain.GateWay.impl;

import com.cet.designpattern.service.responsibilitychain.GateWay.GatewayHandler;

/**
 * @program: cet-practice
 * @description:
 * @author: 陈恩涛
 * @create: 2023-05-14 23:43
 **/
public class ApiLimitGatewayHandler extends GatewayHandler {

    @Override
    public int service() {

        // 网关对应具体处理逻辑
        boolean success = true;
        // 当前节点处理正常，则到下一个节点处理
        if (success) {
            next.service();
        }

        return 0;
    }
}
